package com.lys.staservice.client;

import com.lys.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "service-ucenter" ,fallback = UcenterDegradeFeignClient.class) //调用的服务名称
@Component
public interface UcenterClient {

    //查询某一天的注册人数
    @GetMapping("/educenter/member/registerCount/{day}")
    public R registerCount(@PathVariable("day") String day);
}
